package com.mybasemap;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.basemap.api.BaseMapApi;
import com.esri.arcgisruntime.layers.WebTiledLayer;
import com.esri.arcgisruntime.mapping.ArcGISMap;
import com.esri.arcgisruntime.mapping.Basemap;
import com.esri.arcgisruntime.mapping.view.MapView;
import com.mybasemap.tdt.LayerType;
import com.mybasemap.tdt.TianDiTuMethodsClass;

public class MainActivity extends AppCompatActivity {

    private MapView mapView;
    private ArcGISMap mArcGISMap;
    private Basemap basemap;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mapView= findViewById(R.id.mapView);
        init();
    }

    private void init(){
        mArcGISMap = new ArcGISMap();
        mapView.setMap(mArcGISMap);
        //去除logo
        mapView.setAttributionTextVisible(false);
        basemap = new Basemap();


        BaseMapApi baseMapApi = new BaseMapApi(null, null, null, this, mArcGISMap);
        baseMapApi.loadBaseMapImage();

    }
}